<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title th:text="${session.title}">123</title>
    <link th:replace="common/header"/>
    <link rel="stylesheet" th:href="@{/css/ace-skins.min.css}"/>
</head>
<body class="navbar-fixed">
<div th:replace="common/top"></div>
<div class="container-fluid main_bg" id="main-container">
    <a id="menu-toggler" href="#"><span></span></a>
    <div th:replace="common/menu"></div>
    <div id="main-content" class="clearfix">
        <div id="page-content" class="clearfix">
            <div th:replace="common/title"></div>
            <form class="form-horizontal" th:object="${footUser}" method="post" th:action="@{/foot/footUser/edit}"
                  name="form" th:if="${session.footUser.qx.text == '管理员'}">
                <input type="hidden" name="id" th:field="*{id}"/>
                <input type="hidden" name="qx" th:field="*{qx}"/>
                <h3 class="header smaller lighter blue"><em class="icon-edit"></em>修改用户</h3>
                <div class="row-fluid">
                    <!--PAGE CONTENT BEGINS HERE-->
                    <div class="span6">
                        <div class="control-group">
                            <label class="control-label" for="name">用户名:<span style="color:red">*</span></label>
                            <div class="controls">
                                <input type="text" th:field="*{name}" name="name" id="name" class="input_fix"
                                       placeholder="用户名"/>
                            </div>
                        </div>
                    </div>
                    <div class="span6">
                        <span style="color:red" th:if="${#fields.hasErrors('name')}"
                              th:errors="*{name}">Name Error</span>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span6">
                        <div class="control-group">
                            <label class="control-label" for="nike">昵称:<span style="color:red">*</span></label>
                            <div class="controls">
                                <input type="text" th:field="*{nike}" name="nike" id="nike" class="input_fix"
                                       placeholder="昵称"/>
                            </div>
                        </div>
                    </div>
                    <div class="span6">
                        <span style="color:red" th:if="${#fields.hasErrors('nike')}"
                              th:errors="*{nike}">Name Error</span>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span6">
                        <div class="control-group">
                            <label class="control-label" for="gameId">游戏ID:<span style="color:red">*</span></label>
                            <div class="controls">
                                <input type="text" th:field="*{gameId}" name="gameId" id="gameId" class="input_fix"
                                       placeholder="游戏ID"/>
                            </div>
                        </div>
                    </div>
                    <div class="span6">
                        <span style="color:red" th:if="${#fields.hasErrors('gameId')}"
                              th:errors="*{gameId}">Name Error</span>
                    </div>
                </div>
                <div class="row-fluid">
                    <!--PAGE CONTENT BEGINS HERE-->
                    <div class="span6">
                        <div class="control-group">
                            <label class="control-label" for="password">密码:<span style="color:red">*</span></label>
                            <div class="controls">
                                <input type="password" th:field="*{password}" name="password" id="password"
                                       class="input_fix" placeholder="密码"/>
                            </div>
                        </div>
                    </div>
                    <div class="span6">
                        <span style="color:red" th:if="${#fields.hasErrors('password')}" th:errors="*{password}">Name Error</span>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span6">
                        <div class="control-group">
                            <label class="control-label" for="qes1">问题:</label>
                            <div class="controls">
                                <input type="text" th:field="*{qes1}" name="qes1" id="qes1" class="input_fix"
                                       placeholder="问题"/>
                            </div>
                        </div>
                    </div>
                    <div class="span6">
                        <span style="color:red" th:if="${#fields.hasErrors('qes1')}"
                              th:errors="*{qes1}">Name Error</span>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span6">
                        <div class="control-group">
                            <label class="control-label" for="ans1">回答:</label>
                            <div class="controls">
                                <input type="text" th:field="*{ans1}" name="ans1" id="ans1" class="input_fix"
                                       placeholder="回答"/>
                            </div>
                        </div>
                    </div>
                    <div class="span6">
                        <span style="color:red" th:if="${#fields.hasErrors('ans1')}"
                              th:errors="*{ans1}">Name Error</span>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span6">
                        <div class="control-group">
                            <label class="control-label" for="qes2">问题:</label>
                            <div class="controls">
                                <input type="text" th:field="*{qes2}" name="qes2" id="qes2" class="input_fix"
                                       placeholder="问题"/>
                            </div>
                        </div>
                    </div>
                    <div class="span6">
                        <span style="color:red" th:if="${#fields.hasErrors('qes2')}"
                              th:errors="*{qes2}">Name Error</span>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span6">
                        <div class="control-group">
                            <label class="control-label" for="ans2">回答:</label>
                            <div class="controls">
                                <input type="text" th:field="*{ans2}" name="ans2" id="ans2" class="input_fix"
                                       placeholder="回答"/>
                            </div>
                        </div>
                    </div>
                    <div class="span6">
                        <span style="color:red" th:if="${#fields.hasErrors('ans2')}"
                              th:errors="*{ans2}">Name Error</span>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span6">
                        <div class="control-group">
                            <label class="control-label" for="email">电子邮箱:</label>
                            <div class="controls">
                                <input type="text" th:field="*{email}" name="email" id="email" placeholder="电子邮箱"
                                       class="input_fix"/>
                            </div>
                        </div>
                    </div>
                    <div class="span6">
                        <span style="color:red" th:if="${#fields.hasErrors('email')}"
                              th:errors="*{email}">Name Error</span>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span6">
                        <div class="control-group">
                            <label class="control-label" for="joins">是否参加常规赛:</label>
                            <div class="controls">
                                <div class="span12">
                                    <label class="span6 Light"> <input type="radio" id="joins" name="joins"
                                                                       th:field="*{joins}" value="1"/> <span
                                            class="lbl">是</span> </label>
                                    <label class="span6 Light"> <input type="radio" name="joins" th:field="*{joins}"
                                                                       value="0"/> <span class="lbl">否</span> </label>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="span6">
                        <span style="color:red" th:if="${#fields.hasErrors('joins')}"
                              th:errors="*{joins}">Name Error</span>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span6">
                        <div class="control-group">
                            <label class="control-label" for="sd">是否锁定:</label>
                            <div class="controls">
                                <div class="span12">
                                    <label class="span6 Light"> <input type="radio" id="sd" name="sd" th:field="*{sd}"
                                                                       value="1"/> <span class="lbl">是</span> </label>
                                    <label class="span6 Light"> <input type="radio" name="sd" th:field="*{sd}"
                                                                       value="0"/> <span class="lbl">否</span> </label>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="span6">
                        <span style="color:red" th:if="${#fields.hasErrors('sd')}" th:errors="*{sd}">Name Error</span>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="text-center span12">
                        <button class="btn btn-primary" type="submit"><em class="icon-save"></em>提交</button>
                        <button class="btn btn-danger" type="reset"><em class="icon-remove"></em>取消</button>
                        <a class="btn" type="button" th:href="@{/foot/footUser/search}"><em
                                class="icon-arrow-left"></em>返回</a>
                    </div>
                </div>
            </form>
            <!--/#page-content-->
        </div>
        <div th:replace="common/skin :: skin"></div>
    </div>
    <!--/#main-content-->
</div>
<!--/.fluid-container#main-container-->
<div th:replace="common/js"></div>
</body>
</html>